﻿/*
 * ========================================================================
 * Copyright(c) 2007-2012 情留メ蚊子, All Rights Reserved.
 * Welcom use the LiteFetion.
 * See more information,Please goto http://www.94qing.com
 * ========================================================================
 * 
 * 作 者：情留メ蚊子
 * Q  Q: 540644769
 * 邮 箱：qlwz@qq.com
 * 网 址：http://www.94qing.com
 * ========================================================================
*/
using System;

namespace LiteFetion
{
    /// <summary>
    /// 事件
    /// </summary>
    public static class Event
    {
        /// <summary>
        /// 添加好友回复
        /// </summary>
        public static event EventHandler<EventArgs> BuddyConfirmedNotify;
        /// <summary>
        /// 添加好友回复
        /// </summary>
        public static void OnBuddyConfirmedNotify(object notify)
        {
            if (BuddyConfirmedNotify != null)
            {
                BuddyConfirmedNotify(notify, new EventArgs());
            }
        }

        /// <summary>
        /// 添加好友请求
        /// </summary>
        public static event EventHandler<EventArgs> BuddyInviteNotify;
        /// <summary>
        /// 添加好友请求
        /// </summary>
        public static void OnBuddyInviteNotify(object notify)
        {
            if (BuddyInviteNotify != null)
            {
                BuddyInviteNotify(notify, new EventArgs());
            }
        }

        /// <summary>
        /// 好友消息
        /// </summary>
        public static event EventHandler<EventArgs> BuddyMessageNotify;
        /// <summary>
        /// 好友消息
        /// </summary>
        public static void OnBuddyMessageNotify(object notify)
        {
            if (BuddyMessageNotify != null)
            {
                BuddyMessageNotify(notify, new EventArgs());
            }
        }  
        
        /// <summary>
        /// 好友状态通知
        /// </summary>
        public static event EventHandler<EventArgs> BuddyStateNotify;
        /// <summary>
        /// 好友状态通知
        /// </summary>
        public static void OnBuddyStateNotify(object notify)
        {
            if (BuddyStateNotify != null)
            {
                BuddyStateNotify(notify, new EventArgs());
            }
        }

        /// <summary>
        /// 客户端状态
        /// </summary>
        public static event EventHandler<EventArgs> ClientStateNotify;
        /// <summary>
        /// 客户端状态
        /// </summary>
        public static void OnClientStateNotify(object notify)
        {
            if (ClientStateNotify != null)
            {
                ClientStateNotify(notify, new EventArgs());
            }
        }
    }
}
